package com.basic.inspection.controller;

import com.basic.common.result.WebResult;
import com.basic.inspection.domain.EquipmentLifeCycleBo;
import com.basic.inspection.service.EquipmentLifeCycleService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author wei
 * @Date 2024/9/13
 * @Description
 */

@RestController
@RequestMapping("/equipmentLifeCycle")
public class EquipmentLifeCycleController {

    @Resource
    private EquipmentLifeCycleService equipmentLifeCycleService;

    /**
     * 设备生命周期曲线数据 返回
     * @param equipmentLifeCycleBo 实体类
     * @return WebResult
     */
    @PostMapping("/selLifeCycleData")
    public WebResult selLifeCycleData(@RequestBody EquipmentLifeCycleBo equipmentLifeCycleBo){
        return WebResult.success(equipmentLifeCycleService.selLifeCycleData(equipmentLifeCycleBo));
    }
}
